home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HPAVC
/
HPAVC CD-ROM.iso
/
C2SND201.ZIP
/
CONV2SND.HST
< prev
next >
Wrap
Text File
|
1994-09-11
|
6KB
|
143 lines
CONVERT TO SOUND 2.01, by Kenneth Udut, revisions by Jeffrey L. Hayes
September 11, 1994
Revision list:
--------------
September 22, 1994
2.01
FOURTH PUBLIC RELEASE
New Features Include:
* Snd2wav now recognizes the new-format .snd files produced by the
2500-series.
* The documentation now describes the new .snd format. Other minor
changes made.
June 22, 1994
2.00
THIRD PUBLIC RELEASE (this release modified by Jeffrey L. Hayes)
Bug fixes:
* The sample size problem is now fixed. "Unexpected end-of-file"
errors should no longer occur, and it is no longer necessary to
delete noise at the end of the file.
* The starting offset of the sound data has been corrected.
* A full disk is now detected.
* The program would crash if a nondigit was entered for the
sampling rate. This has been fixed.
* The length of the sound name has been corrected.
New Features Include:
* RIFF WAVE file headers are now understood. For .wav files only,
the sampling rate can be determined from the header, and the
header can be deleted, so that the file is converted without
beginning noise. Most 8-bit mono .wav's can be converted
directly. A separate preprocessor is provided to convert 16-bit
or stereo .wav's to 8-bit mono before conversion.
* A separate program, Snd2wav, is provided to convert .snd files to
.wav.
* Ability to specify the output filename. The output file now
defaults to the same drive and path as the input file, but with
an .snd extension. It is no longer necessary to rename the
output file to something meaningful after running the program.
* Specifying the sound name is now optional. If no sound name is
given, a null name will be used.
* Giving your name when running the program is now optional.
* The source code has been beautified and the line length limited
to 80 spaces. The indentation has been made consistent, and
procedures are clearly marked.
* The documentation has been extensively revised and now includes a
much more detailed description of the .snd file format.
Problems left: There should be a command-line interface for use in
batch files.
February 3, 1993
1.98
SECOND PUBLIC RELEASE (last by Kenneth Udut)
New Features Include:
* Changeable Sampling Rate (5500, 11000, 22000)
* Ability to add the sound "name" (not 'filename')
in a form readable by DeskMate SOUND.PDM
* An ASK_QUESTIONS section of the source code, which
will allow me (or you) to ask questions of the end_user.
Problems left: Interface is 'hacked together' - not smooth, consistant
or anything. Also, I haven't yet found a way to set the sample size
EXACTLY -=- I'm hoping for a word from you or another for help!
Everything else seems okay, at the moment.
1.97 Implemented SAMPLE_RATE change. Updated Documentation.
1.91 Changing READ to READLN solved problem of wierd "READ"'s.
1.78 - 1.90
Added "questions", like "What's the sampling rate" and such.
Had trouble, as the program wanted to answer the questions FOR me
with 'garbage' replies.
January 27, 1993
1.77:
FIRST PUBLIC RELEASE
Files from size 0 up to the MAXIMUM size allowed by DeskMate Sound
can successfully be converted.
Here's the magic sequence:
IF sample_size < 256 THEN samp_char_1 := CHR(sample_size)
ELSE BEGIN
IF sample_size < 65536 THEN
BEGIN
samp_char_1 := CHR(sample_size div 256);
samp_char_2 := CHR((sample_size div 256) + 1);
samp_char_3 := CHR(0);
END
ELSE
BEGIN
samp_char_1 := CHR(sample_size div 65536);
samp_char_2 := CHR(sample_size div 65536);
samp_char_3 := chr((sample_size div 65536) + 1);
END;
END;
WRITE(header_part, samp_char_1, samp_char_2, samp_char_3);
In other words, a file less than 256 bytes is encoded by just using
the corresponding ASCII code. A file from 257 bytes to 65535 bytes
uses TWO bytes to signify file size. A file from 65536 onward and
upward uses THREE bytes to signify file size!
I'm not an engineer, and this whole idea is just a little beyond me,
but the power of HACK helped me immensely here!
January 27, 1993
1.38 - 1.76: Another problem.
Struggled to get CONV2SND to create, in the header, the correct
bytesize of the sound file. I'm bad at math, and I hadn't much
of a clue as to how Tandy did it.
Somewhere around 1.56 or so, I changed the read/write byte by byte,
to BLOCKREAD, BLOCKWRITE, which speeded up the copying process
TREMENDOUSLY! No CRC check, though. I'm not advanced enough to do
that yet.
January 24, 1993
1.37: first working copy.
Also, there is a "click" at the beginning of the sound file. This
is merely the header of the ORIGINAL file, which can easily be
edited out.
January 14 - 24, 1993
1.00 to 1.36: struggled to get a working copy of this program going!
January 14, 1993 - start of the programming for CONV2SND!